package com.qhhc.service;

import com.qhhc.entity.CarAppointment;

import java.util.List;
import java.util.Map;

public interface ICarAppointmentService {
    
    List<CarAppointment> getAllAppointments();
    
    CarAppointment getAppointmentById(Long id);
    
    List<CarAppointment> getAppointmentsByUserId(Long userId);
    
    List<CarAppointment> getAppointmentsByCarId(Long carId);
    
    List<CarAppointment> getAppointmentsByDealerId(Long dealerId);
    
    List<CarAppointment> getAppointmentsByStatus(String status);
    
    List<CarAppointment> searchAppointments(Map<String, Object> params);
    
    int addAppointment(CarAppointment appointment);
    
    int updateAppointment(CarAppointment appointment);
    
    int updateAppointmentStatus(Long id, String status);
    
    int deleteAppointment(Long id);
    
    int deleteAppointmentsByCarId(Long carId);
} 